     function totalprices(){
    	 var tab = document.getElementById('new_productiontable');
    	 var t = tab.rows.length - 4;
    	 var totalprices = 0;
    	 for(var i = 0; i < t; i++){
    		 
    		 var price=new Number($("#price"+i).text());
    		 var amount=$("#count"+i).val();
    		 var totalprice =price*amount;
    		 $("#totalprice"+i).html(totalprice);
    		 
    		 totalprices += new Number($("#totalprice"+i).text());
    	 }
    	 $("#totalprices").html(totalprices);
     }
     setInterval(function(){totalprices();}, "500");
     